package connection.commands;

import java.io.IOException;
import java.io.ObjectOutputStream;

/** @author Mihail A. Muhin */
public class GetFileCommand extends BaseCommand {
  private String filename = null;
  private int ver = 0;

  public String getFilename() {
    return filename;
  }

  public int getVer() {
    return ver;
  }

  public GetFileCommand(String filename, int ver) {
    this.filename = filename;
    this.ver = ver;
  }

  public void write(ObjectOutputStream oos) {
    try {
      writeClassName(oos);
      oos.writeObject(filename);
      oos.writeObject(new Integer(ver));
    } catch (IOException e) {
    }
  }
}
